package com.usian.student.feign;

import com.usian.common.pojo.ResultVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("usian-zs-room")
public interface RoomFeignService {

    @RequestMapping("/room/info")
    // 如果要传一个参数列表的话，需要加上一个@RequestParam注解
    public ResultVo info(@RequestParam("id") int id);
}
